import request from "@/utils/request.js";

/**
 * 渠道展厅管理列表
 * @param params
 */
export const getShowroomManage = query => {
  return request({
    url: `/purchase/api/cpaBusinessShowroomManage/showroomManagePage`,
    method: "get",
    params: query
  });
};
/**
 * 展厅管理分页(按城市) 入参见详情
 * @param params
 */
export const getManageByCityPage = query => {
  return request({
    url: `/purchase/api/cpaBusinessShowroomManage/showroomManageByCityPage`,
    method: "get",
    params: query
  });
};

/**
 * 展厅管理-统计 无参
 * @param params
 */
export const showroomStatistics = () => {
  return request({
    url: `/purchase/api/cpaBusinessShowroomManage/showroomStatistics`,
    method: "get"
  });
};

/**
 * 展厅审核通过 入参见详情
 * @param params
 */
export const exchangeState = data => {
  return request({
    url: "/purchase/api/cpaBusinessShowroomManage/examShowroom",
    method: "post",
    data
  });
};
